/*
 * Copyright (c) 2017. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
 * Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
 * Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
 * Vestibulum commodo. Ut rhoncus gravida arcu.
 */

package com.x2xw.web.service.impl;

import com.x2xw.web.dao.TUserMapper;
import com.x2xw.web.pojo.TUser;
import com.x2xw.web.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * User:fyf
 * date:2017-07-20 14:41
 */
@Service
public class UserServiceImpl implements IUserService {

    @Resource
    private TUserMapper userMapper;


    @Override
    public TUser getUserById(int userId) {

        return userMapper.selectByPrimaryKey(userId);
    }
}
